/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021.
 * Description: export djtag operation api
 * Author: qiuguorui
 * Create: 2021-01-05
 */
#ifndef __LINUX_HAL_HISI_LLC_OPS_H
#define __LINUX_HAL_HISI_LLC_OPS_H
extern void rtos_djtag_lock(void);
extern void rtos_djtag_unlock(void);
extern void rtos_djtag_lock_init(void);

extern int write_l3cache(u32 offset, u32 bank, u32 value);
extern int read_l3cache(u32 offset, u32 bank, u32 *value);
extern int get_present_llcs_num(void);
extern int get_llcs_banks_total(void);
extern void writer_buffer_flush(void);
extern void llc_flush_all(void);
extern void llc_clean_all(void);
#endif
